OxRDF
OxRDF is a simple library providing datastructures encoding RDF 1.1 concepts.
This crate is intended to be a basic building block of other crates like Oxigraph or Spargebra.
Support for RDF-star is available behind the rdf-star
feature.
OxRDF is inspired by RDF/JS and Apache Commons RDF.
Use oxrdfio
if you need to read or write RDF files.
Usage example:
use *;
let mut graph = default;
// insertion
let ex = new.unwrap;
let triple = new;
graph.insert;
// simple filter
let results: = graph.triples_for_subject.collect;
assert_eq!;
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or
<http://www.apache.org/licenses/LICENSE-2.0>
) - MIT license (LICENSE-MIT or
<http://opensource.org/licenses/MIT>
)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Oxigraph by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.